package com.hcbd.tdwt.ui.xingyu.activity;
import android.annotation.SuppressLint;
import android.net.Uri;
import android.widget.ImageView;

import com.hcbd.tdwt.R;
import com.hcbd.tdwt.base.BaseActivity;
import com.hcbd.tdwt.view.PinchImageView;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
@SuppressLint("NonConstantResourceId")
@EActivity(R.layout.activity_chat_view_pictrue)
public class ChatViewPictureActivity extends BaseActivity{

    @ViewById(R.id.headLeft)
    ImageView headLeft;
    @ViewById(R.id.viewImg)
    PinchImageView viewImg;

    @AfterViews
    protected void init() {
        String path=getIntent().getStringExtra("filePath");
        try {
            viewImg.setImageURI(Uri.parse(path));
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    @Click
    void headLeft(){
        finish();
    }
}
